package org.footito.android.data.update;

import org.footito.android.tools.Log;

import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.IBinder;

public class UpdateServiceConnection implements ServiceConnection {

	private UpdateService mBoundService;

	public UpdateService getService() {
		return mBoundService;
	}

	@Override
	public void onServiceConnected(ComponentName name, IBinder service) {
		Log.d("onServiceConnected");
		mBoundService = ((UpdateService.LocalBinder) service).getService();
	}

	@Override
	public void onServiceDisconnected(ComponentName name) {
		Log.d("onServiceDisconnected");
	}

}
